package com.lorizz.index.impl;

import java.util.ArrayList;
import java.util.List;

import com.lorizz.index.Result;
import com.lorizz.index.SortItem;

public class ResultImpl<T> implements Result<T> {
	
	private List<SortItem> sortItems = new ArrayList<SortItem>();
	private int last;
	private int total;
	private List<T> items = new ArrayList<T>();

	@Override
	public List<T> getItems() {
		return items;
	}

	@Override
	public int getTotalHits() {
		return total;
	}

	@Override
	public int getLast() {
		return last;
	}

	@Override
	public List<SortItem> getSortItems() {
		return sortItems;
	}

	public void setSortItems(List<SortItem> sortItems) {
		this.sortItems = sortItems;
	}

	public void setLast(int last) {
		this.last = last;
	}
	
	public void setTotal(int total) {
		this.total = total;
	}

}
